]> dgit.raspbian.org Git - gnome-shell.git/commit
loginManager: Make API promise-based
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 23 Jun 2022 13:45:44 +0000 (15:45 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 1 Aug 2022 18:51:14 +0000 (18:51 +0000)
commita3db9093834e500d10a5f35f45c499ed1f16854d
treea53908f0c57c23635c85f27e24d287f61359e7dd
parentdb3916434ea3b7a3670baeaf2566e4c9956546ad
loginManager: Make API promise-based

The LoginManager abstraction is still mostly callback-based, not
least because the methods are thin wrappers around logind D-Bus
calls.

However as gjs' dbus wrapper now generates promised-based wrappers
as well, we can implement a proper async API just as naturally.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2344>
js/gdm/loginDialog.js
js/misc/loginManager.js
js/misc/systemActions.js
js/ui/endSessionDialog.js
js/ui/screenShield.js